<?php
defined('IN_DESTOON') or exit('Access Denied');
include tpl('header');

show_menu($menus);
?>
<div style="margin-top:150px; margin-left:150px;">
<form method="post" action="?">
<input type="hidden" name="moduleid" value="<?php echo $moduleid;?>"/>
<input type="hidden" name="action" value="<?php echo $action;?>"/>
<input type="hidden" name="file" value="<?php echo $file;?>"/>
<input type="hidden" name="post[attr_id]" value="<?php echo $attr_id;?>"/>
<input type="hidden" name="cat_id" value="<?php echo $cat_id;?>"/>
<table cellpadding="2" cellspacing="1" class="tb">
<tr>
<td class="tl">所属商品类型:</td>
<td>
<?php
		$count = cache_read($_goods->good_type_table.'.php');
		echo $count[$cat_id]['cat_name'];
	?>
</td>
</tr>
<tr>
<td class="tl">显示形式:</td>
<td>
  <p>
    <label>
      <input type="radio" name="post[attr_input_type]" value="1" <?php if($attr_input_type){?> checked="checked"<?php }?> />
      选项值</label>
    <label>
      <input type="radio" name="post[attr_input_type]" value="0" <?php if(!$attr_input_type){?> checked="checked"<?php }?>/>
      唯一值</label>
  </p></td>
</tr>
<tr>
<td class="tl">属性名称:</td>
<td>
<input type="text" size="50" name="post[attr_name]" value="<?php echo $attr_name;?>" id="cat_name"/></td>
</tr>
<tr>
<td class="tl">可选值列表:</td>
<td>
<textarea name="post[attr_values]" cols="30" rows="8"><?=$attr_values?>
</textarea>
(从下面的列表中选择（一行代表一个可选值）)</td>
</tr>
<tr>
  <td class="tl">&nbsp;</td>
  <td><input name="submit" type="submit" id="submit" value="提交" />
    </td>
</tr>
</table>
</form>
</div>
<?php include tpl('footer');?>